<template>
  <el-space size="default">
    <el-button plain type="primary" :icon="CirclePlusFilled" @click="showAppend">新增</el-button>
    <el-button plain type="danger" :disabled="selectSize===0" :icon="DeleteFilled" @click="onMultiDelete">批量删除</el-button>
    <el-button plain type="success" :icon="Promotion" @click="showRecover">数据恢复</el-button>
    <el-button plain type="info" :icon="UploadFilled" @click="showImport">导入</el-button>
    <el-button plain type="warning" :icon="Share" @click="onMultiExport">导出</el-button>
  </el-space>
</template>

<script setup lang="ts">
import {defineProps} from 'vue'
import {CirclePlusFilled, DeleteFilled, Promotion, Share, UploadFilled} from '@element-plus/icons-vue'

interface Props {
  selectSize?: Number;
  showAppend?: Function;
  showImport?: Function;
  showRecover?: Function;
  onMultiDelete?: Function;
  onMultiExport?: Function;
}

defineProps<Props>();
</script>